<?php
/**
 * <https://y.st./>
 * Copyright © 2018 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'Gaining flab',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2018/12/01.jpg" alt="More wet weather" class="framed-centred-image" width="649" height="480"/>
<section id="flab">
	<h2>Flab</h2>
	<p>
		I&apos;ve been growing increasingly worried that what flab I&apos;ve lost is coming back.
		I thought my double chin was just a bout gone, but I think it&apos;s getting worse again.
		And my hands ...
		My new rings are hard to get on and off, and the one&apos;s a bit tight as I wear it.
		Worst of all, when I bend down, my get often gets in the way like it used to.
		I don&apos;t know what I need to do, but my current strategy isn&apos;t working.
	</p>
	<p>
		It&apos;s not all bad new though.
		There&apos;s my legs.
		They used to be real flabby.
		I still have some fat on my legs, but it&apos;s down quite a bit.
		There&apos;s enough to conceal my muscles down there, but I don&apos;t have loose rolls of the stuff any more.
		Mostly, my legs are just sleek and powerful.
		All this biking is really paying off.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		My discussion posts for the day:
	</p>
	<blockquote>
		<p>
			Okay, so we&apos;re just going with the normal written assignment procedures?
			Sounds good.
			The instructions were just written up in a misleading way then.
			Thank you for the clarification!
		</p>
	</blockquote>
	<blockquote>
		<p>
			You&apos;ve got me curious.
			In what way is little endian easier to work with in assembly language?
			As for knowing beforehand what we&apos;ll use the machine for in order to put the correct architecture in place, that&apos;s something I hadn&apos;t thought of.
			Most of us use general-purpose computers, which have to take into account some use cases that are better supported by each of the two options.
			For a general-purpose computer, we can&apos;t neatly categorise what the machine will need to do as being a better fit for one over the other.
			However, for building more-specialised systems, this might not be the case.
			We may be able to clearly say that one endian is better than the other for all work done by that specialised machine.
		</p>
		<p>
			In what way can integer overflow crash your computer?
			And in what way can integer overflow allow an attacker access to your machine?
			I&apos;ve caused integer overflows repeatedly and never crashed my machine with them or opened up my machine to attack.
			Here on Linux, we have no such vulnerabilities.
			I mean, don&apos;t get me wrong, Linux can be hacked or crashed just as any system can, but not overflowing integers.
			And to be honest, I doubt other systems such as $a[BSD], OS X, or even the notoriously-insecure Windows is going to crash or give access to an attacker if you feed it numbers too big for it to handle.
			That is, unless integer overflow isn&apos;t the only thing at play.
			(For example, if there was a buffer overflow caused by an integer overflow, there could be issues, but not with just an integer overflow alone.)
		</p>
	</blockquote>
</section>
<section id="religion">
	<h2>Religion</h2>
	<p>
		The missionaries stood me up for our appointment again.
	</p>
</section>
<section id="Minetest">
	<h2>Minetest</h2>
	<p>
		I&apos;ve decided to carry over potion ingredient proficiency levels to the items created by the element related to those stats, but not find proxy ingredients for stats for which I don&apos;t want to directly have added to potions.
		In the case of sand, there are no related items.
		Sand crafts into sandstone, but the point in not using sand directly is to not use up the items needed to raise that stat further.
		Therefore, sand and sandstone are out as ingredients.
		But so are sandstone bricks, even though those spawn naturally, as players might craft them to make potions from.
		And if I remove that crafting recipe, sand is no longer related to sandstone bricks in any way.
		The same logic applies to glass.
		You could craft it from the other sands, but a lot of players would use regular sand, either not thinking about how that sand could be better used to increase their potion proficiency instead of using it directly to make potions, or due to the fact that regular sand has a tendency to degrade, while other sands don&apos;t.
		Besides, glass would be a terrible potion ingredient.
		So with that in mind, the sand stat will likely increase the effectiveness of all potions crafted by the user.
	</p>
	<p>
		As for other stat items I don&apos;t want to use as ingredients directly, those would be the saplings, the seeds, and the spores.
		Again, these are items that could instead be used to generate the nodes needed to increase the proficiency levels, so I don&apos;t want to cause players to have to waste them in potions.
		From these nodes, plants and fungi bearing other items can be grown.
		For seeds and spores, these items already have a stat, so the proficiency with these stat-related items will simply be boosted.
		For saplings, the logs will be the potion ingredient instead.
		Apples and snow can additionally be grown from apple and pine saplings, respectively, so will be ties to those stats too.
		However, for example, using a pine log and some snow in the same potion, while both ingredients will have separate effects on the ability of the potion, will still count as a duplicate ingredient as far as how proficient in the element you must be to use them together.
		Using two snowballs together will require the same proficiency in pine magic as using one snowball and one pine log or two pine logs.
		Or maybe I should just halve the stat, and use it as the proficiency for both elements?
		I don&apos;t know.
		It&apos;s too early to decide for sure what I&apos;ll do here.
		First, I need to come up with effects for the twenty-three ingredients I now have.
	</p>
	<p>
		This new setup adds some ingredients and takes some away.
		However, overall, it leaves me with three less ingredients.
		Maybe that&apos;ll help, as I&apos;m having trouble coming up with effects I can actually program using Minetest&apos;s $a[API].
		I think Minetest 5.0.0 adds a lot of capabilities for dealing with modified tools, but the current release, 0.4.17.1, really doesn&apos;t have that.
		I can hack in stuff that&apos;ll be run server-side, but nothing the client will recognise.
		That mean, for example, I can&apos;t make tools faster to use or anything like that.
	</p>
</section>
END
);
